* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============== 外部容器 =============== */
.container {
  width: 800px;
  padding: 50px;
  margin: 50px auto;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, #000000, #800000);
  border-radius: 20px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
}

/* =============== 个人信息 =============== */
.personal {
  display: grid;
  grid-template-columns: auto auto 150px;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
}

.personal .item1 {
  grid-area: 1/1/2/3;
}

.personal .item1 h2 {
  font-size: 30px;
  display: inline-block;
  letter-spacing: 5px;
  margin-right: 10px;
}

.personal .item1 h4 {
  font-size: 16px;
  font-weight: normal;
  display: inline-block;
  letter-spacing: 3px;
}

.personal .item2 {
  font-size: 14px;
}

.personal .item2 .iconfont {
  font-size: 16px;
  vertical-align: -1px;
}

.personal .item2 span:first-of-type {
  margin-right: 10px;
  color: #aaa;
}

.personal .item2:nth-child(odd) span:first-of-type {
  text-align: right;
  display: inline-block;
  width: 4em;
}

.personal .item2 a {
  color: #800000;
}

.personal .item3 {
  grid-area: 1/3/5/4;
  justify-self: center;
  align-self: center;
}

.personal .item3 img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* =============== 标题 =============== */
section {
  width: 100%;
  margin-bottom: 50px;
}

section .title {
  font-size: 24px;
  letter-spacing: 2px;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
}

/* =============== 教育经历 & 工作经历 =============== */
.edu > ul,
.work > ul {
  border-left: 2px solid #800000;
}

.edu > ul li,
.work > ul li {
  padding: 30px;
}

.edu .main::before,
.work .main::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -31px;
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #800000;
}

.edu .main,
.work .main {
  position: relative;
}

.edu .main .time,
.work .main .time,
.edu .main .sub,
.work .main .sub {
  font-size: 14px;
  color: #aaa;
}

.edu .main .name,
.work .main .name {
  font-size: 16px;
  padding: 0 10px;
}

.edu .desc,
.work .desc {
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
  margin-top: 10px;
  letter-spacing: 0.2em;
}

/* =============== 专业技能 =============== */
.skill > ul {
  border: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  row-gap: 20px;
}

.skill .item {
  width: 120px;
  height: 120px;
  padding: 0;
  color: #800000;
  text-align: center;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.skill .item > span {
  z-index: 2;
}

.skill .item::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: #fac8c8;
  border: 5px solid #fab4b4;
  box-sizing: border-box;
  transform: rotate(45deg);
}

.skill .item.level1::before {
  border-top-color: #800000;
}

.skill .item.level2::before {
  border-top-color: #800000;
  border-right-color: #800000;
}

.skill .item.level3::before {
  border-color: #800000;
  border-left-color: #fab4b4;
}

.skill .item.level4::before {
  border-color: #800000;
}

/* =============== 项目经验 =============== */
.project .item {
  margin: 10px 0 30px;
}

.project .item h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

.project .item .detail {
  display: grid;
  grid-template-columns: 5em auto;
  grid-template-rows: 2em 4em auto;
  row-gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.project .item .detail .label {
  color: #aaa;
}

.project .item .detail a {
  color: #800000;
}

.project .item .detail p:last-child {
  grid-area: 3/2/4/2;
}

/* =============== 个人评价 =============== */
.comment p {
  font-size: 14px;
  line-height: 1.5;
}
